package com.example.actionsignin.utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by 旭 on 2017/7/30/030.
 */

public class ToastUtil {
    private static Toast toast;

    public static void INSTANCE(Context context,String msg)
    {
        if (toast == null)
        {
            toast = Toast.makeText(context,msg,Toast.LENGTH_SHORT);
        }else {
            toast.setText(msg);
        }
        toast.show();
    }
}
